package com.adee.java;

public class Test005_int {
    public static void main(String[] args) {
        // int类型4字节
        System.out.println(Integer.toString(Integer.MAX_VALUE, 2));
        System.out.println(Integer.toString(Integer.MAX_VALUE, 2).length()); // 31

        // long类型8字节
        System.out.println(Long.toString(Long.MAX_VALUE, 2));
        System.out.println(Long.toString(Long.MAX_VALUE, 2).length()); // 63
    }
}
